<!DOCTYPE HTML>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<h4 class="sub-header">需求信息搜索<h5>(若所查找无结果，则按照当前年份列表显示数据)</h5></h4>
<form role="form" action="searchRequirement" method="post">
    <div class="row">
        <div class="form-group col-xs-2">
            <%--<label for="year">需求年份</label>--%>
            <%--<select name="year" class="form-control">--%>
            <%--<option>--请选择--</option>--%>
            <%--<option>2018</option>--%>
            <%--<option>2017</option>--%>
            <%--<option>2016</option>--%>
            <%--</select>--%>
            <label for="year">需求年份</label>
            <%--<input type="text" name="qwe" id="qwe" onclick="WdatePicker({dateFmt:'yyyy'})"/></br>--%>
            <s:textfield class="form-control" name="year" placeholder="yyyy" required="true"/>
            <span class="add-on"><i class="icon-calendar"></i></span>
            <script>
                $('#year').datetimepicker({
                    format: 'yyyy',
                    startDate: '2016',
                    autoclose: 'true',
                    todayHighlight: 'ture',
                    startView: 4,
                    minView: 4,
                    language: 'zh-CN',
                    clearBtn:'true'
                });
            </script>
        </div>
        <div class="form-group col-xs-2">
            <label for="requirementId">需求编号</label>
            <s:textfield class="form-control" name="requirementId" placeholder="xq-year-number"/>
        </div>
        <div class="form-group col-xs-2">
            <label for="requirementType">需求类型</label>
            <select name="requirementType" class="form-control">
                <option>--请选择--</option>
                <option>C(变更需求)</option>
                <option>N(新增需求)</option>
            </select>
        </div>
        <div class="form-group col-xs-2">
            <label for="requirementName">需求名称</label>
            <s:textfield class="form-control" name="requirementName" placeholder="不支持模糊搜索"/>
        </div>
        <div class="form-group col-xs-2">
            <label for="dealTeam">受理团队</label>
            <select name="dealTeam" class="form-control">
                <option>--请选择--</option>
                <option>中间业务开发</option>
                <option>数据应用支持</option>
            </select>
        </div>
        <div class="form-group col-xs-2">
            <label for="dealResult">审批结果</label>
            <select name="dealResult" class="form-control">
                <option value="">--请选择--</option>
                <option value="通过">通过</option>
                <option value="审批中">审批中</option>
                <option value="暂缓">暂缓</option>
                <option value="回绝">回绝</option>
                <option value="回退">回退</option>
            </select>
        </div>

        <div>
            <button type="button" class="btn btn-primary" style="float: right;margin-right: 15px;" onclick="reset();">重置</button>
            <button type="submit" class="btn btn-primary" style="float: right;margin-right: 15px;">查找</button>
        </div>
    </div>
</form>
<script>
    function reset(){
        $("#requirementId").val("");
        $("#requirementName").val("");
    }
</script>
